﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using UserDefinedForms.Entities;

namespace UDFDesign.GUIComponent.CustomControl
{
    class DesignableDateTimePicker:DesignableControl
    {
        public DesignableDateTimePicker()
        {
        }
        public DesignableDateTimePicker(FormControl entity)
            : base(entity)
        {
        }

        protected override void initControl()
        {
            this.selfControl = new DateTimePicker();
            selfControl.Enabled = false;
            ((DateTimePicker)selfControl).Format = DateTimePickerFormat.Short;
            this.Controls.Add(selfControl);
            this.Size = selfControl.Size;
        }

        public override ControlTypes ControlType
        {
            get
            {
                return ControlTypes.DateTimePicker;
            }
        }
    }
}
